import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSDrawPlateSingleRewardHelper } from "./SeqSDrawPlateSingleRewardHelper";
type int = number;
//class SDrawPlateReward
    
    export  class SDrawPlateReward extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDrawPlateReward();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqSDrawPlateSingleRewardHelper.write(arg1, this.rewards);
            arg1.writeInt(this.type);
            arg1.writeInt(this.content);
            arg1.writeDate(this.endTime);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.rewards = SeqSDrawPlateSingleRewardHelper.read(arg1);
            this.type = arg1.readInt();
            this.content = arg1.readInt();
            this.endTime = arg1.readDate();
            return;
        }

        public /* const */_type: int=12388;

        public /* var */rewards: Array<any>;

        public /* var */type: int;

        public /* var */content: int;

        public /* var */endTime: Date;

        public static /* var */_regist: SDrawPlateReward;
    }

            SDrawPlateReward._regist = new SDrawPlateReward(true);
        